--[[
	prop_waterized - shared.lua
		by Meoo~we
]]--
ENT.Type 			= "anim"
ENT.Base 			= "base_anim"

local Card = {"x", "y", "z"}
-- Utility: IsPointInside
function ENT:IsPointInside( pt )
    local lPos = self:WorldToLocal( pt )
    local cPos = self:OBBMins()
    for _, k in ipairs(Card) do
        if cPos[k] > lPos[k] then return false end
    end
    cPos = self:OBBMaxs()
    for _, k in ipairs(Card) do
        if cPos[k] < lPos[k] then return false end
    end
    return true
end

-- Setup datatable hook
function ENT:SetupDataTables()
    self:DTVar( "Int", 0, "damping" )
    self:DTVar( "Int", 1, "density" )
end

-- Accessor Funcs
function ENT:GetDamping( )
    return self.dt.damping or 15
end

function ENT:GetDensity( )
    return self.dt.density or 85
end
